package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.DeviceStateDao;
import io.renren.modules.generator.entity.DeviceStateEntity;
import io.renren.modules.generator.service.DeviceStateService;



@Service("deviceStateService")
public class DeviceStateServiceImpl implements DeviceStateService {
	@Autowired
	private DeviceStateDao deviceStateDao;
	
	@Override
	public DeviceStateEntity queryObject(Integer id){
		return deviceStateDao.queryObject(id);
	}
	
	@Override
	public List<DeviceStateEntity> queryList(Map<String, Object> map){
		return deviceStateDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return deviceStateDao.queryTotal(map);
	}
	
	@Override
	public void save(DeviceStateEntity deviceState){
		deviceStateDao.save(deviceState);
	}
	
	@Override
	public void update(DeviceStateEntity deviceState){
		deviceStateDao.update(deviceState);
	}
	
	@Override
	public void delete(Integer id){
		deviceStateDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		deviceStateDao.deleteBatch(ids);
	}
	
}
